Optimal. Leaf size=369 \[ -\frac {(B d-A e) \tan ^{-1}\left (\frac {\sqrt {c d^2+a e^2} x}{\sqrt {d} \sqrt {e} \sqrt {a+c x^4}}\right )}{2 \sqrt {d} \sqrt {e} \sqrt {c d^2+a e^2}}-\frac {\left (\sqrt {a} B-A \sqrt {c}\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{2 \sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {c} d-\sqrt {a} e\right ) \sqrt {a+c x^4}}+\frac {a^{3/4} \left (\frac {\sqrt {c} d}{\sqrt {a}}+e\right )^2 (B d-A e) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \Pi \left (-\frac {\left (\sqrt {c} d-\sqrt {a} e\right )^2}{4 \sqrt {a} \sqrt {c} d e};2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{4 \sqrt [4]{c} d e \left (c d^2-a e^2\right ) \sqrt {a+c x^4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 369, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {1723, 226,
1721} \begin {gather*} \frac {a^{3/4} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \left (\frac {\sqrt {c} d}{\sqrt {a}}+e\right )^2 (B d-A e) \Pi \left (-\frac {\left (\sqrt {c} d-\sqrt {a} e\right )^2}{4 \sqrt {a} \sqrt {c} d e};2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{4 \sqrt [4]{c} d e \sqrt {a+c x^4} \left (c d^2-a e^2\right )}-\frac {(B d-A e) \text {ArcTan}\left (\frac {x \sqrt {a e^2+c d^2}}{\sqrt {d} \sqrt {e} \sqrt {a+c x^4}}\right )}{2 \sqrt {d} \sqrt {e} \sqrt {a e^2+c d^2}}-\frac {\left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \left (\sqrt {a} B-A \sqrt {c}\right ) F\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{2 \sqrt [4]{a} \sqrt [4]{c} \sqrt {a+c x^4} \left (\sqrt {c} d-\sqrt {a} e\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 226
Rule 1721
Rule 1723
Rubi steps
\begin {align*} \int \frac {A+B x^2}{\left (d+e x^2\right ) \sqrt {a+c x^4}} \, dx &=-\frac {\left (\sqrt {a} B-A \sqrt {c}\right ) \int \frac {1}{\sqrt {a+c x^4}} \, dx}{\sqrt {c} d-\sqrt {a} e}+\frac {\left (\sqrt {a} (B d-A e)\right ) \int \frac {1+\frac {\sqrt {c} x^2}{\sqrt {a}}}{\left (d+e x^2\right ) \sqrt {a+c x^4}} \, dx}{\sqrt {c} d-\sqrt {a} e}\\ &=-\frac {(B d-A e) \tan ^{-1}\left (\frac {\sqrt {c d^2+a e^2} x}{\sqrt {d} \sqrt {e} \sqrt {a+c x^4}}\right )}{2 \sqrt {d} \sqrt {e} \sqrt {c d^2+a e^2}}-\frac {\left (\sqrt {a} B-A \sqrt {c}\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{2 \sqrt [4]{a} \sqrt [4]{c} \left (\sqrt {c} d-\sqrt {a} e\right ) \sqrt {a+c x^4}}+\frac {\sqrt [4]{a} \left (\frac {\sqrt {c} d}{\sqrt {a}}+e\right ) (B d-A e) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \Pi \left (-\frac {\left (\sqrt {c} d-\sqrt {a} e\right )^2}{4 \sqrt {a} \sqrt {c} d e};2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{2}\right )}{4 \sqrt [4]{c} d e \left (\sqrt {c} d-\sqrt {a} e\right ) \sqrt {a+c x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 10.22, size = 138, normalized size = 0.37 \begin {gather*} -\frac {i \sqrt {1+\frac {c x^4}{a}} \left (B d F\left (\left .i \sinh ^{-1}\left (\sqrt {\frac {i \sqrt {c}}{\sqrt {a}}} x\right )\right |-1\right )+(-B d+A e) \Pi \left (-\frac {i \sqrt {a} e}{\sqrt {c} d};\left .i \sinh ^{-1}\left (\sqrt {\frac {i \sqrt {c}}{\sqrt {a}}} x\right )\right |-1\right )\right )}{\sqrt {\frac {i \sqrt {c}}{\sqrt {a}}} d e \sqrt {a+c x^4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.15, size = 192, normalized size = 0.52
method | result | size |
default | \(\frac {B \sqrt {1-\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \EllipticF \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, i\right )}{e \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}\, \sqrt {c \,x^{4}+a}}+\frac {\left (A e -B d \right ) \sqrt {1-\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \EllipticPi \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, \frac {i \sqrt {a}\, e}{\sqrt {c}\, d}, \frac {\sqrt {-\frac {i \sqrt {c}}{\sqrt {a}}}}{\sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}}\right )}{e d \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}\, \sqrt {c \,x^{4}+a}}\) | \(192\) |
elliptic | \(\frac {B \sqrt {1-\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \EllipticF \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, i\right )}{e \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}\, \sqrt {c \,x^{4}+a}}+\frac {\sqrt {1-\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \EllipticPi \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, \frac {i \sqrt {a}\, e}{\sqrt {c}\, d}, \frac {\sqrt {-\frac {i \sqrt {c}}{\sqrt {a}}}}{\sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}}\right ) A}{d \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}\, \sqrt {c \,x^{4}+a}}-\frac {\sqrt {1-\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {c}\, x^{2}}{\sqrt {a}}}\, \EllipticPi \left (x \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}, \frac {i \sqrt {a}\, e}{\sqrt {c}\, d}, \frac {\sqrt {-\frac {i \sqrt {c}}{\sqrt {a}}}}{\sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}}\right ) B}{e \sqrt {\frac {i \sqrt {c}}{\sqrt {a}}}\, \sqrt {c \,x^{4}+a}}\) | \(290\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + B x^{2}}{\sqrt {a + c x^{4}} \left (d + e x^{2}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {B\,x^2+A}{\sqrt {c\,x^4+a}\,\left (e\,x^2+d\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________